package com.ruoyi.app.domain;

import com.ruoyi.common.core.domain.AppBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 操作日志对象 app_operation_log
 * 
 * @author ruoyi
 * @date 2019-12-12
 */
@ApiModel(value="APP消息",description="APP消息")
public class AppOperationLog extends AppBaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="ID",name="id",example="1")
    private Long id;

    @ApiModelProperty(value="操作人ID",name="userId",example="1")
    @Excel(name = "操作人ID")
    private Long userId;

    @ApiModelProperty(value="操作人姓名",name="userName",example="1")
    @Excel(name = "操作人姓名")
    private String userName;

    @ApiModelProperty(value="操作内容",name="operaContent",example="1")
    @Excel(name = "操作内容")
    private String operaContent;

    @ApiModelProperty(value="操作类型",name="operaType",example="1")
    @Excel(name = "操作类型")
    private String operaType;

    @ApiModelProperty(value="操作时间",name="operaTime",example="1")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operaTime;

    @ApiModelProperty(value="源ID",name="sourceId",example="1")
    @Excel(name = "源ID")
    private Long sourceId;

    @ApiModelProperty(value="状态",name="state",example="1")
    @Excel(name = "状态")
    private Integer state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setOperaContent(String operaContent) 
    {
        this.operaContent = operaContent;
    }

    public String getOperaContent() 
    {
        return operaContent;
    }
    public void setOperaType(String operaType) 
    {
        this.operaType = operaType;
    }

    public String getOperaType() 
    {
        return operaType;
    }
    public void setOperaTime(Date operaTime) 
    {
        this.operaTime = operaTime;
    }

    public Date getOperaTime() 
    {
        return operaTime;
    }
    public void setSourceId(Long sourceId)
    {
        this.sourceId = sourceId;
    }

    public Long getSourceId()
    {
        return sourceId;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("operaContent", getOperaContent())
            .append("operaType", getOperaType())
            .append("operaTime", getOperaTime())
            .append("sourceId", getSourceId())
            .append("state", getState())
            .toString();
    }
}
